import { defineStore } from "pinia";
export const useUserStore = defineStore("user", {
  state: () => ({
    isLogin: false,
    userInfo: {},
  }),
  getters: {},
  actions: {
    setIsLogin(flag) {
      this.isLogin = flag;
    },
    setUserInfo(data) {
      this.userInfo = data;
    },
  },
});
